home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre2.z / postgre2 / ref / postquel / rename < prev    next >
Encoding:
Text File  |  1992-08-27  |  1.0 KB  |  44 lines

  1. .\" XXX standard disclaimer belongs here....
  2. .\" $Header: /private/postgres/ref/postquel/RCS/rename,v 1.3 1992/07/14 05:54:17 ptong Exp $
  3. .SP RENAME COMMANDS 6/14/90
  4. .XA 2 Rename
  5. .uh NAME
  6. .lp
  7. rename \*- rename a class or an attribute in a class
  8. .uh SYNOPSIS
  9. .lp
  10. .(l
  11. \fBrename\fR classname1 \fBto\fR classname2
  12. \fBrename\fR attname1 \fBin\fR classname \fBto\fR attname2
  13. .)l
  14. .uh DESCRIPTION
  15. .lp
  16. The
  17. .b rename
  18. command
  19. causes the name of a class or attribute
  20. to change
  21. without changing any of the data contained in the affected class.
  22. Thus, the class or attribute will remain of the same type
  23. and size after this command is executed.
  24. .lp
  25. .uh EXAMPLE
  26. .lp
  27. .ft C
  28. /* change the emp class to personnel */
  29.  
  30. rename emp to personnel
  31.  
  32. /* change the sports attribute to hobbies */
  33.  
  34. rename sports in emp to hobbies
  35. .ft
  36. .uh BUGS
  37. .lp
  38. Execution of historical queries
  39. using classes and attributes
  40. whose names have changed will
  41. produce incorrect results in many situations.
  42. .lp
  43. Renaming of types, operators, rules, etc. should also be supported.
  44.